import Vue from "vue";
import Vuex from "vuex";
import cart from "./modules/cart";
import products from "./modules/products";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    userInfo: { userName: "钱多多" },
  },
  modules: { cart, products },
});
